package cn.duli.myvideo.mapper;

import cn.duli.myvideo.pojo.CollectVariety;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectVarietyMapper {

    Page<CollectVariety> findAll();

    Integer findCountByVarietyId(@Param("vId") Integer tId);

    List<CollectVariety> findByUserId(@Param("uId") Integer uId);

    List<CollectVariety> findByVarietyId(@Param("vId") Integer vId);

    void save(CollectVariety collectVariety);

    void deleteById(@Param("cvId") Integer cvId);
}